﻿// Copyright (C) 2012 Kim Jensen, TaskJunction.com
// Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TaskJunctionLib.Model;

namespace TaskJunctionLib.Mapping
{
    public interface IObjectMapper<T> where T : ModelEntity
    {
        T deserialize(string data);

        void deserialize(string data, T obj);

        IList<T> deserializeList(string data);

        string serialize(T obj);

        string serializeList(IList<T> list);
    }
}
